#!/usr/bin/env python
# coding: utf-8

# 给定一个整数`n`，你的任务是打印一个`n`大小的字母rangoli (rangoli是一种基于图案创造的印度民间艺术形式)。  
# 输入：`n=5`
# 预期输出：
# 
# `
# --------e--------
# ------e-d-e------
# ----e-d-c-d-e----
# --e-d-c-b-c-d-e--
# e-d-c-b-a-b-c-d-e
# --e-d-c-b-c-d-e--
# ----e-d-c-d-e----
# ------e-d-e------
# --------e--------
# `

# In[1]:


import string
def print_rangoli(size):
    n = size
    alph = string.ascii_lowercase
    width = 4 * n - 3
    ans = []
    for i in range(n):
        left = "-".join(alph[n - i - 1 : n])
        mid = left[-1:0:-1] + left
        final = mid.center(width, "-")
        ans.append(final)
    if len(ans) > 1:
        for i in ans[n - 2 :: -1]:
            ans.append(i)
    ans = "\n".join(ans)
    print(ans)
if __name__ == "__main__":
    n = int(5)
    print_rangoli(n)

